import request from "@/utils/request"
import store from "@/store"
let cookie = store.state.usercookie


export const getuserAPI = (uid) => {
    return request({
      method: "GET",
      url: "/user/detail",
      params: {
       uid,
        cookie
      },
    })
  }

  
export const getuserplaylistAPI = (uid,limit,offset) => {
  return request({
    method: "GET",
    url: "/user/playlist",
    params: {
     uid,
     limit,
     offset,
      cookie
    },
  })
}